<?php 
/*------------------------------------------------------------------------
# company - registration template 
# @author    pipapai.com
-------------------------------------------------------------------------*/

defined('_JEXEC') or die;

// disable core styles to avoid bs conflict 
OC_Util::$core_styles = array();

if(isDevMode()) {
   OCP\Util::addStyle('company', 'company');
   OCP\Util::addScript('company', 'registers');
   OCP\Util::addScript('company', 'settings');
} else {
   OCP\Util::addStyle('static', 'company');
   OCP\Util::addScript('static', 'apps/company.registers.min');
}


?>
<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('company/js', 'company.php'));?>"></script>

<div class="mainpanel">
<div id='regstep1' class='userdata'>
<div id="regformtab">
<form id="employerregform" action="<?php echo OC_Helper::linkToRoute("company_saveregemp"); ?>" method="post" name="employerregform">

   <div class="row-fluid oneconn_margin">
      <div class="span2 visible-desktop">&nbsp;</div>
      <div class="span8 oneconn_box">
         <div class="lgrg_title clearfix"><span class="pull-left large"><b>企业用户注册</b></span><span class="pull-right"><em class="redstar">*</em><span class="medium">表示必须填写</span></span></div>
         <div class="lgrg_regtiptext">仅供企业用户注册，个人用户目前只可通过收到的邀请Email注册</div>
         <div class="lgrg_form">
                  <div class="form-horizontal">
                     <div class="control-group">
                        <label class="control-label key" for="name"><span class="required">*</span>公司名称</label>
                        <div class="controls">
                           <input type="text" class="input-xlarge required" name="name" id="name"/>
                        </div>
                     </div>
                     <div class="control-group">
                        <label class="control-label key" for="email"><span class="required">*</span>常用邮箱</label>
                        <div class="controls">
                           <input type="text" maxlength="100" class="input-xlarge required email" name="email" id="email"/><br/>
                           <span class="only_text">如：hr@company.com</span>
                        </div>
                     </div>
                     <div class="control-group">
                        <label class="control-label key" for="password"><span class="required">*</span>密码</label>
                        <div class="controls">
                           <input type="password" maxlength="15" name="password" id="password" class="input-xlarge required" data-placement="right" title="密码长度6～15位，字母区分大小写" minlength="6"/>
                           <span class="medium label label-warning soft" style="white-space:normal;display:none;">建议使用包含数字、字母、下划线组合的安全密码，否则有可能会造成信息泄漏的危险。</span>

                        </div>
                     </div>
                     <div class="control-group">
                        <label class="control-label key" for="password2"><span class="required">*</span>确认密码</label>
                        <div class="controls">
                           <input type="password" maxlength="15" name="password2" id="password2" class="input-xlarge"/>
                        </div>
                     </div>
                     <?php if(false): ?>
	      				<div class="control-group" id='reg_vcode' style='display:one'>
			   		    <label class="control-label key" for="vcode"><span class="required">*</span>邮箱验证码</label>
				   	    <div class="controls">
					          <input type="text" class="inputbox input-medium required" id="vcode" name="vcode" maxlength="6" style="vertical-align:top;">
					          <label style="display:none;"><a class="button" style="width:130px" id="reg_getvcode" href="javascript:;"><span>获取邮箱验证码</span></a></label>
					          <label for="vcode" class="error" derror="请输入邮箱验证码" style="display:none">请输入邮箱验证码</label>
   				        </div>
	   	        	   </div>
                     <?php endif; ?>
                     <?php if(!isDevMode()): ?>
                     <div class="control-group regcaptcha">
                        <label class="control-label key"><span class="required">*</span>安全码</label>
                        <div class="controls">
                           <input type="text" class="input-medium medium" placeholder="请填写下图中字符" id="captcha_code" name="captcha_code" maxlength="6" autocomplete="off"/>
                           <span class="help-inline medium notpasschecked" for="captcha_code"></span>
                        </div>
                     </div>
                     <div class="control-group regcaptcha">
                        <div class="controls">
                           <img id="captcha" style="width:164px;display:none;" class="captchaimg" src="/images/blank.png" alt="请输入图中数字和字符"/><span class="help-inline medium"><a href="#" id="captcha_reload" title="如果安全码不清楚，点击一下更新">换一换</a></span>
                        </div>
                     </div>
                     <?php endif; ?>
                     <div class="login_action clearfix">
                        <div class="controls">
                           <input type="submit" class="btn btn-info pull-left" value="确认"/>
                           <label class="checkbox medium pull-left" style="width:auto; padding-top:5px; margin-left:10px;">
                              <input type="checkbox" name='acceptedterms' checked="checked" value=""/>已阅读并同意
                           </label>
                           <a target="_blank" href="/helps/doc/product/termofservice.html" class="medium pull-left" style="margin-left:5px;">《枇杷派服务条款》</a>
                        </div>
                   </div>
                   <div class="control-group">
			   		    <label class="control-label key"></label>
                      <div class="controls">
                        <div id="regmsg" class="error" style="margin-top: 10px; margin-left: 0px;"></div>
                      </div>
                   </div>
                    
                  </div>                           
         </div>
      </div>
      <div class="span2 visible-desktop">&nbsp;</div>
   </div>
   <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken']; ?>" id="requesttoken">
</form>
</div>

</div> <!-- regtab -->
<div id='regstep2' class='userdata' style="display: none"></div>

</div> <!-- mainpanel -->
